package com.ruoyi.wechat.domain;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * <p>
 * 微信用户地址
 * </p>
 *
 * @author YinHeng
 * @since 2024/2/3
 */
@Data
@TableName("app_user_addr")
public class UserAddr {

    public interface edit {
    }

    /**
     * ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @NotNull(message = "参数id为空", groups = {edit.class})
    private Long id;
    /**
     * 所属用户id
     */
    private Long userId;
    /**
     * 地址ID
     */
    @NotNull(message = "请选择地址", groups = {edit.class})
    private Long addrId;
    /**
     * 联系人名称
     */
    @NotBlank(message = "请填写联系人昵称", groups = {edit.class})
    private String nick;
    /**
     * 是否默认地址
     */
    private Integer isFirst;
    /**
     * 详细地址
     */
    private String detail;
    /**
     * 所属地区
     */
    @NotBlank(message = "请选择地区", groups = {edit.class})
    private String area;
    /**
     * 小区
     */
    @NotBlank(message = "请选择小区", groups = {edit.class})
    private String comy;
    /**
     * 楼栋
     */
    @NotBlank(message = "请选择楼栋", groups = {edit.class})
    private String ridgepole;
    /**
     * 门牌号
     */
    @NotBlank(message = "请输入单元和门号", groups = {edit.class})
    private String door;
    /**
     * 手机号
     */
    @NotBlank(message = "请输入联系号码", groups = {edit.class})
    private String phone;
    /**
     * 用户名
     */
    private String title;
    /**
     * 性别
     */
    private Integer sex;

}
